// //app.js
// const amapFile = require('./utils/amap-wx.js');
// const myAmapFun = new amapFile.AMapWX({
//   key: '574a6604ba9f0cf31d641c5c243bb31b'
// });
App({
  onLaunch: function () {
    // 展示本地存储能力
    var logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    wx.getSystemInfo({
      complete: (res) => {
        console.log(res)
        this.globalData.statusBarHeight = res.statusBarHeight;
        this.globalData.windowHeight = res.screenHeight - ((res.screenWidth / 750) * 2 * (44)) - res.statusBarHeight
        // this.globalData.windowHeight = res.windowHeight -  this.globalData.titleBarHeight-res.statusBarHeight
      },
    })
  },
  globalData: {
    // myAmapFun: myAmapFun, //高德地图接口
    statusBarHeight: "",
    windowHeight: "",
    titleBarHeight: "",
    userInfor:{},
    BaseURL: "https://dudu.gaoxiao.love/healthqrcode/miniprogram",
  }
})